import redis
from redis_db import pool

con = redis.Redis(
    connection_pool=pool
)
try:
    con.delete("country", "city")
    con.mset({"country": "德国", "city": "柏林"})
    result = con.mget("country", "city")
    for one in result:
        print(one.decode("utf-8"))
except Exception as e:
    print(e)
finally:
    del con